home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: rla111@ix.netcom.com (Richard Albright)
- Newsgroups: comp.lang.c++
- Subject: Help: Illegal character error
- Date: 4 Apr 1996 02:46:11 GMT
- Organization: Netcom
- Message-ID: <4jvd5j$a5f@cloner2.ix.netcom.com>
- NNTP-Posting-Host: ix-nyc5-18.ix.netcom.com
- X-NETCOM-Date: Wed Apr 03 6:46:11 PM PST 1996
-
- For some reason I am getting 2 illegal characters in a member function.
- The code for the problem class and member is as follows. I'm using
- Borland's C++ compiler for windows.
-
-
- class account {
- public:
- void calc(double, float);
-
- private:
- double savbal;
- static double intrate;
- };
-
- void account::calc(double bal, float rate)
- {
- double mint;
- savbal=bal;
- cout<< savbal <<"\n";
- mint=((savbal * rate) / 12);
- savbal=mint+savbal;
- cout<< mint <<"\n";
- cout<< savbal <<"\n";
- }
-
- After running the debugger, my error codes are as follows:
-
- Compiling HMWK78.CPP:
- Error HMWK78.CPP 37: Illegal character '|' (0x16)
- Error HMWK78.CPP 37: Illegal character '|' (0x03)
-
- Can anyone offer me any suggestions on how to fix this?
- Thanx.
-